<?
	if($id == ""){
		$id = $dsfm_channel->get_max_channel();
	}

	$all_channel = $dsfm_channel->get_all_channel();
	$all_channel = $dsfm_localization->data($all_channel, "channel");
	$tpl->assign("all_channel",$all_channel);

	$channel = $dsfm_channel->get_channel($id);
	$channel = $dsfm_localization->object($channel, array("channel","detail"));
	$tpl->assign("channel",$channel);

	$tpl->draw("channel");
?>